package com.jsoft.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @author:sha
 * @email:o68o4741@163.com
 * @date:2023/2/20
 */
public class Voucher implements Serializable {
    private static final long serialVersionUID = 3327141230448166048L;
    private Integer id;
    private String no;
    private Double amount;
    private Integer enterpriseId;
    private Integer openEnterpriseId;
    private Integer institutyId;
    private Date openTime;
    private Date expiryTime;
    private String upLinkAddress;
    /**
     * 凭证来源source得处理
     */
    private String source;
    /**
     * 凭证状态status得处理
     */
    private String status;
    private Integer sourceId;
    /**
     * 付息方式paymentInterestType得处理
     */
    private String paymentInterestType;
    private String remark;

    @Override
    public String toString() {
        return "Voucher{" +
                "id=" + id +
                ", no='" + no + '\'' +
                ", amount=" + amount +
                ", enterpriseId=" + enterpriseId +
                ", openEnterpriseId=" + openEnterpriseId +
                ", institutyId=" + institutyId +
                ", openTime=" + openTime +
                ", expiryTime=" + expiryTime +
                ", upLinkAddress='" + upLinkAddress + '\'' +
                ", source='" + source + '\'' +
                ", status='" + status + '\'' +
                ", sourceId=" + sourceId +
                ", paymentInterestType='" + paymentInterestType + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }

    public Voucher(String no, Double amount, Integer enterpriseId, Integer openEnterpriseId, Integer institutyId, Date openTime, Date expiryTime, String upLinkAddress, String source, String status, Integer sourceId, String paymentInterestType, String remark) {
        this.no = no;
        this.amount = amount;
        this.enterpriseId = enterpriseId;
        this.openEnterpriseId = openEnterpriseId;
        this.institutyId = institutyId;
        this.openTime = openTime;
        this.expiryTime = expiryTime;
        this.upLinkAddress = upLinkAddress;
        this.source = source;
        this.status = status;
        this.sourceId = sourceId;
        this.paymentInterestType = paymentInterestType;
        this.remark = remark;
    }
    public Voucher() {
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Integer enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public Integer getOpenEnterpriseId() {
        return openEnterpriseId;
    }

    public void setOpenEnterpriseId(Integer openEnterpriseId) {
        this.openEnterpriseId = openEnterpriseId;
    }

    public Integer getInstitutyId() {
        return institutyId;
    }

    public void setInstitutyId(Integer institutyId) {
        this.institutyId = institutyId;
    }

    public Date getOpenTime() {
        return openTime;
    }

    public void setOpenTime(Date openTime) {
        this.openTime = openTime;
    }

    public Date getExpiryTime() {
        return expiryTime;
    }

    public void setExpiryTime(Date expiryTime) {
        this.expiryTime = expiryTime;
    }

    public String getUpLinkAddress() {
        return upLinkAddress;
    }

    public void setUpLinkAddress(String upLinkAddress) {
        this.upLinkAddress = upLinkAddress;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
            this.source = source;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
            this.status = status;
    }

    public Integer getSourceId() {
        return sourceId;
    }

    public void setSourceId(Integer sourceId) {
        this.sourceId = sourceId;
    }

    public String getPaymentInterestType() {
        return paymentInterestType;
    }

    public void setPaymentInterestType(String paymentInterestType) {
            this.paymentInterestType = paymentInterestType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
